import Vue from 'vue';
import App from './App.vue';
import VueRouter from 'vue-router';
import LoginView from './views/LoginView.vue';
import RegisterView from './views/RegisterView.vue';
import InitView from './views/InitView.vue';
import HomePageView  from "./views/HomePageView.vue";
import FoodView  from "./views/FoodView.vue";
import TravelView  from "./views/TravelView.vue";
import FamousView from "./views/FamousView.vue";
import AuthorView from "./views/AuthorView.vue";
import ZongziView from "./views/ZongziView.vue";
import Nanhuling from "@/views/Nanhuling.vue";
import WenhujiangyaView from "@/views/WenhujiangyaView.vue";
import ShaomaiView from "@/views/ShaomaiView.vue";
import NanhuView from "./views/NanhuView.vue";
import XitangView from "@/views/XitangView.vue";
import YancangView from "@/views/YancangView.vue";
import TianzhutangView from "@/views/TianzhutangView.vue";
import JinyongView from "@/views/JinyongView.vue";
import FengzikaiView from "@/views/FengzikaiView.vue";
import XuzhimoView from "@/views/XuzhimoView.vue";
import WangguoweiView from "@/views/WangguoweiView.vue";

Vue.config.productionTip = false;

Vue.use(VueRouter);

const routes = [
    { path: '/login', component: LoginView },
    { path: '/register', component: RegisterView },
    { path: '/', component: InitView },
    { path: '/homepage', component: HomePageView },
    { path: '/food', component: FoodView },
    { path: '/travel', component: TravelView },
    { path: '/famous', component: FamousView },
    { path: '/author', component: AuthorView },
    { path: '/food/zongzi', component: ZongziView },
    { path: '/food/nanhuling', component:Nanhuling },
    { path: '/food/wenhujiangya', component:WenhujiangyaView },
    { path: '/food/shaomai', component:ShaomaiView },
    { path: '/travel/nanhu', component:NanhuView },
    { path: '/travel/xitang', component:XitangView },
    { path: '/travel/yancang', component:YancangView },
    { path: '/travel/tianzhutang', component:TianzhutangView },
    { path: '/famous/jinyong', component: JinyongView },
    { path: '/famous/fengzikai', component: FengzikaiView },
    { path: '/famous/xuzhimo', component: XuzhimoView },
    { path: '/famous/wangguowei', component: WangguoweiView }
];

const router = new VueRouter({
    routes
});

new Vue({
    render: h => h(App),
    router
}).$mount('#app');

